<?php 
	function connectDB() {
		$host="db4free.net:3306"; // Host name
        $dbuser ='hide'; // Mysql username
        $dbpass ='123456';// Mysql password
        $db_name='webhoanglong'; // Database name
        
        // Connect to server and select databse.
        $link = mysql_connect("$host", "$dbuser", "$dbpass");
        mysql_select_db("$db_name", $link);
        //echo "ket noi csdl thanh cong";
		mysql_set_charset('utf8',$link); 
		
		return $link;
	}
?>
